package com.by.common.core.utils;

/**
 * 接口处理结果
 */
public enum ResultStatus {

    SUCCESS(200,"成功"), FAIL(0, "失败");


    int code;
    String msg;

    /**
     * 构造方法私有化
     *
     * @param code
     * @param msg
     */
    private ResultStatus(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
